-
Couldn't load subscription status.
- Fork 13.9k
resolve: Fix another ICE in import validation #57181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
r? @zackmdavis (rust_highfive has picked a reviewer for you, use r? to override) |
|
Beta-nominating as a regression fix, the assert was introduced in stable Rust 1.31 (in #55884). |
|
@bors r+ |
|
📌 Commit 2af1d6f has been approved by |
|
@bors p=10 |
resolve: Fix another ICE in import validation Imports are allowed to have ambiguous resolutions as long as all of them have same `Def`. As it turned out, it's possible for different `Module`s to have same `Def` when `extern crate` items are involved. Fixes #56596
|
☀️ Test successful - status-appveyor, status-travis |
[beta] Rollup backports Cherry-picked: * #57053: Fix alignment for array indexing * #57181: resolve: Fix another ICE in import validation * #57185: resolve: Fix one more ICE in import validation * #57282: Wf-check the output type of a function in MIR-typeck * #55318: Ensure that Rustdoc discovers all necessary auto trait bounds * #56838: Call poly_project_and_unify_type on types that contain inference types Rolled up: * #57300: [beta] Update RLS to include 100% CPU on hover bugfix * #57301: beta: bootstrap from latest stable (1.31.1) * #57292: [BETA] Update cargo r? @ghost
Imports are allowed to have ambiguous resolutions as long as all of them have same
Def.As it turned out, it's possible for different
Modules to have sameDefwhenextern crateitems are involved.Fixes #56596